<script type="text/javascript" src="/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/plugins/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript" charset="utf-8" src="/plugins/ueditor/zh-cn/zh-cn.js"></script>
<div class="form-group">
    <label for="tag" class="col-md-3 control-label">文章标题</label>
    <div class="col-md-6">
        <input type="text" class="form-control" name="title" id="tag" value="{{ $title }}" autofocus>
        <input type="hidden" class="form-control" name="scan_num" id="tag" value="{{ $scan_num }}" autofocus>
        <input type="hidden" class="form-control" name="user_id" id="tag" value="{{ $user_id }}" autofocus>
        <input type="hidden" class="form-control" name="sort" id="tag" value="{{ $sort }}" autofocus>
    </div>
</div>
<div class="form-group">
    <label for="tag" class="col-md-3 control-label">作者</label>
    <div class="col-md-6">
        <input type="text" class="form-control" name="author" id="tag" value="{{ $author }}" autofocus>
    </div>
</div>
<div class="form-group">
    <label for="tag" class="col-md-3 control-label">文章内容</label>
    <div class="col-md-6">
        <script id="editor" name="remark" type="text/plain" style="width:800px;height:400px;">{{ $remark }}</script>
        {{--<textarea name="remark" class="form-control" rows="15">{{ $remark }}</textarea>--}}
    </div>
</div>
<script type="text/javascript">

    //实例化编辑器
    //建议使用工厂方法getEditor创建和引用编辑器实例，如果在某个闭包下引用该编辑器，直接调用UE.getEditor('editor')就能拿到相关的实例
    var ue = UE.getEditor('editor');

</script>